package oj.swing.cliente;


import java.util.ArrayList;

import oj.jboss.bean.SBean;
import oj.util.common.OJEntry;


/**
 * @author ogagliano
 * 
 */
public class OJMenu extends SBean  {

	private int posicion;

	private OJEntry elementAt;

	private ArrayList menues;

	public ArrayList returnMenues() {
		return menues;
	}

	public OJMenu() {
		posicion = 0;
	}

	public void addMenu(String title, String nombreClase) {

		if (menues == null)
			menues = new ArrayList();
		OJEntry entry = new OJEntry(title, nombreClase);
		menues.add(posicion, entry);
		posicion++;

	}
}
